package com.cos.lession76sb2;

import com.cos.lession76sb2.entity.Emp;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.cos.lession76sb2.dao")
//@ComponentScan({"com.cos.emp.config","com.cos.lession76sb2"})
public class Lession76Sb2Application {

    public static void main(String[] args) {
        SpringApplication.run(Lession76Sb2Application.class, args);
    }

    @Bean
    public Emp getEmp(){
        return new Emp();
    }


}
